<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			let base = {
				a: '1',
				b: 2,
				c: [1,2]
			}
			
			let sub = {
				d: 'd',
				e: 'e',
				f: 'f'
			}
			// 对象合并 数组也可以
			let newobj = Object.assign({},base,sub);
			
			console.log(newobj)
		</script>
	</body>
</html>
